/*
* $Id: Application.cpp 323 2011-07-24 20:16:16Z volok-aleksej@yandex.ru $
*
* Copyright 2009-2011 by Volokitin Aleksey
* All rights reserved
*
*/
#include "Common/include.h"
#include "Application.h"
#include "Visual/SyncWizard.h"
#include "Visual/HideWindow.h"

CApplication& CApplication::GetApp(){
	static CApplication app;
	return app;
}

CApplication::CApplication()
	: m_bExit(false){}
CApplication::~CApplication(){}

BOOL CApplication::InitInstance(){
	m_pMainWnd = new CHideWindow;

	return true;
}

int CApplication::ExitInstance(){
//	m_comReader.StopThread();
	delete m_pMainWnd;
	m_pMainWnd = NULL;
	return __super::ExitInstance();
}
